package com.note.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.note.domain.base.DataBase;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/4/29 21:07
 * @since JDK 1.8
 */
@TableName("m_note")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Note extends DataBase {

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 标签
     */
    @TableField("tag")
    private String tag;

    /**
     * 浏览次数
     */
    @TableField("viewnum")
    private Integer viewnum;

    @TableField("isencrypt")
    private Boolean isEncrypt;

}
